var flag1 = true;
var flag2 = true;
var flag3 = true;
var flag4 = true;
var flag5 = true;
var flag6 = true;

function menu_1() {

	if(flag1 == true) {
		$("#i1").css({
			transform: "rotate(90deg)"
		});
		$(".subMenu").css({
			display: "none"
		});
		$("#menu-sub-001").css({
			display: "block"
		});
		$("#menu-sub-001").animate({
			height: 100,
		}, 200);
		flag1 = false;
		flag2 = true;
		flag3 = true;
		flag4 = true;
		flag5 = true;
		flag6 = true;
	} else {
		$("#i1").css({
			transform: "rotate(0deg)"
		});
		$("#menu-sub-001").animate({
			height: 0,
		}, 200);
		setTimeout(function() {
			$("#menu-sub-001").css({
				display: "none"
			});
		}, 200)
		flag1 = true;
	}

}

function menu_2() {

	if(flag2 == true) {
		$("#i2").css({
			transform: "rotate(90deg)"
		});
		$(".subMenu").css({
			display: "none"
		});
		$("#menu-sub-002").css({
			display: "block"
		});
		$("#menu-sub-002").animate({
			height: 120,
		}, 200);
		flag1 = true;
		flag2 = false;
		flag3 = true;
		flag4 = true;
		flag5 = true;
		flag6 = true;
	} else {
		$("#i2").css({
			transform: "rotate(0deg)"
		});

		$("#menu-sub-002").animate({
			height: 0,
		}, 200);
		setTimeout(function() {
			$("#menu-sub-002").css({
				display: "none"

			});
		}, 200)

		flag2 = true;
	}

}

function menu_3() {

	if(flag3 == true) {
		$("#i3").css({
			transform: "rotate(90deg)"
		});
		$(".subMenu").css({
			display: "none"
		});
		$("#menu-sub-003").css({
			display: "block"
		});
		$("#menu-sub-003").animate({
			height: 120,
		}, 200);
		flag1 = true;
		flag2 = true;
		flag3 = false;
		flag4 = true;
		flag5 = true;
		flag6 = true;
	} else {
		$("#i3").css({
			transform: "rotate(0deg)"
		});

		$("#menu-sub-003").animate({
			height: 0,
		}, 200);
		setTimeout(function() {
			$("#menu-sub-003").css({
				display: "none"

			});
		}, 200)

		flag3 = true;
	}

}

function menu_4() {

	if(flag4 == true) {
		$("#i4").css({
			transform: "rotate(90deg)"
		});
		$(".subMenu").css({
			display: "none"
		});
		$("#menu-sub-004").css({
			display: "block"
		});
		$("#menu-sub-004").animate({
			height: 120,
		}, 200);
		flag4 = false;
		flag1 = true;
		flag2 = true;
		flag3 = true;
		flag5 = true;
		flag6 = true;
	} else {
		$("#i4").css({
			transform: "rotate(0deg)"
		});
		$("#menu-sub-004").animate({
			height: 0,
		}, 200);
		setTimeout(function() {
			$("#menu-sub-004").css({
				display: "none"

			});
		}, 200)

		flag4 = true;
	}

}

function menu_5() {

	if(flag5 == true) {
		$("#i5").css({
			transform: "rotate(90deg)"
		});
		$(".subMenu").css({
			display: "none"
		});
		$("#menu-sub-005").css({
			display: "block"
		});
		$("#menu-sub-005").animate({
			height: 80,
		}, 200);
		flag5 = false;
		flag2 = true;
		flag3 = true;
		flag4 = true;
		flag1 = true;
		flag6 = true;
	} else {
		$("#i5").css({
			transform: "rotate(0deg)"
		});
		$("#menu-sub-005").animate({
			height: 0,
		}, 200);
		setTimeout(function() {
			$("#menu-sub-005").css({
				display: "none"

			});
		}, 200)

		flag5 = true;
	}

}

function menu_6() {

	if(flag6 == true) {
		$("#i6").css({
			transform: "rotate(90deg)"
		});
		$(".subMenu").css({
			display: "none"
		});
		$("#menu-sub-006").css({
			display: "block"
		});
		$("#menu-sub-006").animate({
			height: 30,
		}, 200);
		flag6 = false;
		flag2 = true;
		flag3 = true;
		flag4 = true;
		flag5 = true;
		flag1 = true;
	} else {
		$("#i6").css({
			transform: "rotate(0deg)"
		});

		$("#menu-sub-006").animate({
			height: 0,
		}, 200);
		setTimeout(function() {
			$("#menu-sub-006").css({
				display: "none"

			});
		}, 200)

		flag6 = true;
	}

}

//图片盒子

function box1() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/意大利香辣.jpg";
	document.querySelector("#introduction>h2").innerHTML = "意大利香辣 Spicy Italian";
	document.querySelector("#introduction>p").innerHTML = "意大利辣香肠、萨拉米香肠和奶酪，搭配每日烘焙的面包，满足你的味蕾。。";

}

function box2() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/培根.jpg";
	document.querySelector("#introduction>h2").innerHTML = "培根 B.L.T";
	document.querySelector("#introduction>p").innerHTML = "热烤培根、清爽生菜和鲜美多汁的西红柿，三种食材的绝佳组合，口感丰盈。";

}

function box3() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/火腿.jpg";
	document.querySelector("#introduction>h2").innerHTML = "火腿 Ham";
	document.querySelector("#introduction>p").innerHTML = "鲜嫩味美的火腿配上SUBWAY®赛百味餐厅特有的蜜汁芥末酱，搭配您自选最爱的蔬菜，美味难以阻挡。";

}

function box4() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/新鲜蔬菜.jpg";
	document.querySelector("#introduction>h2").innerHTML = "新鲜蔬菜 Veggie Delite™";
	document.querySelector("#introduction>p").innerHTML = "各种新鲜蔬菜和每日烘焙面包的组合，配上爽口开胃的调味品，沙拉般的清爽美味。生菜、西红柿、青椒、洋葱、橄榄和酸黄瓜，多样蔬菜膳食平衡。";

}

function box5() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/意大利经典.jpg";
	document.querySelector("#introduction>h2").innerHTML = "意大利经典 Italian B.M.T.™";
	document.querySelector("#introduction>p").innerHTML = "有人说意大利经典是赛百味最大、最多肉、最美味的一款三明治。热那亚式萨拉米香肠、意大利辣香肠和火腿切片造就的经典美味倍受青睐。";

}

function box6() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/意大利香肠.jpg";
	document.querySelector("#introduction>h2").innerHTML = "意大利香肠 Italian Sausage";
	document.querySelector("#introduction>p").innerHTML = "意大利风味香肠肉香汁浓，热烤奶酪入口即融，搭配喜欢的面包、酱料和蔬菜，味香萦绕齿间回味无穷。";

}

function box7() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/香烤鸡排.jpg";
	document.querySelector("#introduction>h2").innerHTML = "香烤鸡排 Roasted Chicken";
	document.querySelector("#introduction>p").innerHTML = "柔嫩无骨的鸡排烤得恰到好处，配上自选的新鲜蔬菜和独特调味品，每日烘焙的面包，鲜香四溢。";

}

function box8() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/火鸡胸.jpg";
	document.querySelector("#introduction>h2").innerHTML = "火鸡胸 Turkey Breast";
	document.querySelector("#introduction>p").innerHTML = "柔嫩火鸡胸切片，配以自选的新鲜蔬菜和酱料，风味独特。搭配墨西哥辣椒，酸辣美味挡不住。";

}

function box9() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/日式照烧鸡.jpg";
	document.querySelector("#introduction>h2").innerHTML = "日式照烧鸡 Chicken Teriyaki";
	document.querySelector("#introduction>p").innerHTML = "在柔嫩的鸡肉切片上淋上少量照烧调味酱，搭配自选的新鲜蔬菜和调味品，一起裹入每日烘焙的面包，亚洲口味心动不已。";

}

function box10() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/金枪鱼.jpg";
	document.querySelector("#introduction>h2").innerHTML = "金枪鱼 Tuna";
	document.querySelector("#introduction>p").innerHTML = "金枪鱼与奶油蛋黄酱的混合，创造出世上最妙不可言的滋味。SUBWAY®赛百味金枪鱼三明治可自选新鲜蔬菜、调味品以及每日烘焙的各式面包。";

}

function box11() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/香热奇士.jpg";
	document.querySelector("#introduction>h2").innerHTML = "香热奇士 Subway Melt™";
	document.querySelector("#introduction>p").innerHTML = "柔嫩的鸡胸肉，烟熏的火腿，松脆的培根，热融融的奶酪，配以清脆的蔬菜和独特的调味品，一切都融合在每日烘焙的面包内，这种美妙滋味只能意会不可言传。";

}

function box12() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/香烤牛肉.jpg";
	document.querySelector("#introduction>h2").innerHTML = "香烤牛肉 Roast Beef";
	document.querySelector("#introduction>p").innerHTML = "一款受人欢迎的经典美味，低于6克脂肪含量，柔嫩的香烤牛肉切片搭配自选的新鲜蔬菜和调味品，更健康更美味。";

}

function box13() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/奇士牛排.jpg";
	document.querySelector("#introduction>h2").innerHTML = "奇士牛排 Steak & Cheese";
	document.querySelector("#introduction>p").innerHTML = "令人垂涎三尺的柔嫩牛排切片，佐以洋葱和青椒，覆上一层热融融的奶酪，再配上各种自选的新鲜蔬菜和调味品，夹在每日烘焙的面包里，热气腾腾，美味难敌。";

}

function box14() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/百味俱乐部.jpg";
	document.querySelector("#introduction>h2").innerHTML = "百味俱乐部 Subway Club™";
	document.querySelector("#introduction>p").innerHTML = "柔嫩的精选鸡胸肉，烟熏的香烤牛肉，美味的火腿切片，每日烘焙的面包，配以自选的清脆蔬菜和调味品，真正的百味融合，舍我其谁！";

}

function box15() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/火腿.jpg";
	document.querySelector("#introduction>h2").innerHTML = "火腿 Ham";
	document.querySelector("#introduction>p").innerHTML = "鲜嫩味美的火腿配上SUBWAY®赛百味餐厅特有的蜜汁芥末酱，搭配您自选最爱的蔬菜，美味难以阻挡。";

}

function box16() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/火鸡胸.jpg";
	document.querySelector("#introduction>h2").innerHTML = "火鸡胸 Turkey Breast";
	document.querySelector("#introduction>p").innerHTML = "柔嫩火鸡胸切片，配以自选的新鲜蔬菜和酱料，风味独特。搭配墨西哥辣椒，酸辣美味挡不住。";

}

function box17() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/香烤鸡排.jpg";
	document.querySelector("#introduction>h2").innerHTML = "香烤鸡排 Roasted Chicken";
	document.querySelector("#introduction>p").innerHTML = "柔嫩无骨的鸡排烤得恰到好处，配上自选的新鲜蔬菜和独特调味品，每日烘焙的面包，鲜香四溢。";

}

function box18() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/香烤牛肉.jpg";
	document.querySelector("#introduction>h2").innerHTML = "香烤牛肉 Roast Beef";
	document.querySelector("#introduction>p").innerHTML = "一款受人欢迎的经典美味，低于6克脂肪含量，柔嫩的香烤牛肉切片搭配自选的新鲜蔬菜和调味品，更健康更美味。";

}

function box19() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/百味俱乐部.jpg";
	document.querySelector("#introduction>h2").innerHTML = "百味俱乐部 Subway Club™";
	document.querySelector("#introduction>p").innerHTML = "柔嫩的精选鸡胸肉，烟熏的香烤牛肉，美味的火腿切片，每日烘焙的面包，配以自选的清脆蔬菜和调味品，真正的百味融合，舍我其谁！";

}

function box20() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/百味卷.jpg";
	document.querySelector("#introduction>h2").innerHTML = "百味卷 Wrap";
	document.querySelector("#introduction>p").innerHTML = "按照自己的喜好，可将任意一款SUBWAY® 赛百味三明治更换为百味卷，柔香饼皮与自选肉类和蔬菜的组合，别有一番风味";

}

function box21() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/沙拉.jpg";
	document.querySelector("#introduction>h2").innerHTML = "沙拉 Salad";
	document.querySelector("#introduction>p").innerHTML = "按照自己的喜好，加入最爱的 SUBWAY® 赛百味肉类和蔬菜，制作令人垂涎的沙拉。";

}

function box22() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/三明治拼盘.jpg";
	document.querySelector("#introduction>h2").innerHTML = "三明治拼盘 Sandwich Platter";
	document.querySelector("#introduction>p").innerHTML = "办公室开会，聚会或家人朋友小聚享用。一个三明治拼盘可供5-9人食用，您可以选择5个您最爱的冷餐三明治，或者在我们的两种特色拼盘中选择。— 蔬菜三明治、火腿、百味俱乐部、火鸡胸、香烤牛肉5种口味12英寸冷三明治。,br>— 火腿、意大利经典、香烤牛肉、意大利香辣、金枪鱼5种口味12英寸冷三明治。— 任意5个12英寸冷餐三明治。*请至少提前24小时通知，咨询门店了解更多信息。（单击此处查询门店信息）";

}

function box23() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/甜饼拼盘.jpg";
	document.querySelector("#introduction>h2").innerHTML = "甜饼拼盘 Cookie Platter";
	document.querySelector("#introduction>p").innerHTML = "精心烤制的甜蜜烘香饼干，黑巧克力，双色巧克力，花生，提子燕麦口味任你混搭。*请至少提前24小时通知，咨询门店了解更多信息。（单击此处查询门店信息）";

}

function box24() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/巨型三明治.jpg";
	document.querySelector("#introduction>h2").innerHTML = "巨型三明治 Giant Sub";
	document.querySelector("#introduction>p").innerHTML = "不管你要来场闺蜜派对，游戏联机狂欢夜，节假小聚，还是户外踏青，巨型三明治都是满足你们的首选。— 三英尺巨型三明治（0.9米长）可以切分成18个2英寸的三明治，供10-12人食用— 六英尺巨型三明治（1.8米长）可以切分为36个2英寸的三明治，供20-25人食用*请至少提前24小时通知，咨询门店了解更多信息。（单击此处查询门店信息）";

}

function box25() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/饮料和小食.jpg";
	document.querySelector("#introduction>h2").innerHTML = "饮料和小食 DRINKS & SIDES";
	document.querySelector("#introduction>p").innerHTML = "SUBWAY®三明治美味可口，搭配饮料和小食更加丰盛，尽享诱人滋味。\n*饮料因城市而异，详情请查阅门店信息";

}

function box26() {
	$("#introduction").css({
		display: "block"
	});
	$("#imgbox").css({
		display: "block"
	})

	$("#health_doc").css({
		display: "none"
	})
	document.querySelector("#imgbox>img").src = "../img/how/早餐.jpg";
	document.querySelector("#introduction>h2").innerHTML = "早餐 BREAKFAST";
	document.querySelector("#introduction>p").innerHTML = "每日烘焙的面包，搭配精选肉料或奶酪，以及喷香营养的鸡蛋，SUBWAY®早餐为您唤醒全天活力。<br />*部分餐厅供应早餐，详情请查阅门店信息。";

}

function box27() {
	$("#introduction").css({
		display: "none"
	})
	$("#imgbox").css({
		display: "none"
	})

	$("#health_doc").css({
		display: "block"
	})
}